{template 'common/header'}

<div class='container' style='padding:0 5px 10px;margin:0;width:100%'>
	
		<div class="panel panel-success">
		  <div class="panel-heading">常用工具 > 项目列表</div>
		</div>
		<a class="btn btn-default" href="{php echo $this->createWebUrl('fund_download',array('pro_id'=>$pro_id))}"><i class="icon-download-alt"></i>导出用户信息1</a> 
		<a class="btn btn-default" href="{php echo $this->createWebUrl('fund_downloadto',array('pro_id'=>$pro_id))}"><i class="icon-download-alt"></i>导出用户信息2</a>
		<form id="form2" class="form-horizontal" method="post">
			<table class="table table-hover">
				<thead class="navbar-inner">
					<tr>
						<th style="width:40px;">全选</th>
						<th style="width:40px;">头像</th>
	          			<th style="width:40px;">姓名</th>
	          			<th style="width:100px;">订单号</th>
	          			<th style="width:80px;">支持项目</th>
	          			<th style="width:60px;">支持金额</th>
	          			<th style="width:60px;">支持时间</th>
						<th style="min-width:60px;width:60px;">编辑</th>
					</tr>
				</thead>
				<tbody>
					{loop $list $item}
					<tr>
						<td><input type="checkbox" value="{$item['fund_id']}" name="delete[]"></td>
						<td><img src="{$item['mem_photo']}" style="width:40px;border-radius:50%"></td>
						<td>{$item['mem_name']}</td>
						<td>{$item['order_num']}</td>
						<td>{$item['pro_name']}</td>
						<td>{$item['fund_value']} {if $item['type']=='MONEY'}元{else}积分{/if}</td>
						<td>{php echo date("Y:m:d H:i:s",$item['fund_time'])}</td>
						<td>
						<a onclick="if(confirm('此操作不可恢复，确认吗？')){location.href='{php echo $this->createWebUrl('fund', array('fund_id' => $item['fund_id'],'op'=>'del'))}'}" href="javascript:;" title="删除" class="btn btn-xs btn-danger"><span class="icon icon-close">删除</span></a>
						</td>				
					</tr>
					{/loop}
					<tr >
						<td><input type="checkbox"  onclick="var ck = this.checked;$(':checkbox').each(function(){this.checked = ck});" name=''>
							<input class="btn btn-primary btn-xs" type="submit" value="删除" name="submit" >
						</td>
						<td></td><td></td><td></td><td>
					</tr>
				</tbody>
			</table>
			<input type="hidden" value="fund" name="do">
			<input type="hidden" value="del" name="op">
			<input type="hidden" name="token" value="{$_W['token']}" />
		</form>
		{$pager}
	
</div>

{template 'common/footer'}
